export default {
  install (Vue, options) {
    Vue.prototype.$hasPerm = function (permission) {
        let myPermissions = this.$store.state.permissions;
        if(myPermissions != null){
            if(myPermissions.indexOf("系统管理员") > -1){
                return true;
            }else{
                return myPermissions.indexOf(permission) > -1;
            }
        }
    }
  }
}